#define  _CRT_SECURE_NO_WARNINGS 1
#include "list.hpp"

int main()
{
	lw::list<int> lt;
	int a[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
	for (auto e : a)
		lt.push_back(e);

	//lt.push_front(11);
	//lt.push_front(12);
	//lt.push_front(13);
	//lt.push_front(14);

	//lt.pop_back();
	//lt.pop_front();
	//lt.pop_front();
	//lt.pop_front();
	//lt.pop_back();
	//lt.pop_back();



	for (auto e : lt)
	{
		std::cout << e << " ";
	}
	std::cout << std::endl;


	lw::list<int>::const_iterator it = lt.begin();
	while (it != lt.end())
	{
		std::cout << *it << "  ";
		//*it += 2;
		++it;
	}
	std::cout << std::endl;


	return 0;
}